package com.itheima.string;

import java.sql.SQLOutput;
import java.util.Scanner;

public class Replace {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入");
        String str = sc.nextLine();

        String str1 = str.replace("TMD", "***");//替换敏感词
        System.out.println(str1);
        String str2 = str1.replace("SB", "***");
        System.out.println(str2);
    }


}
